<template>
    <q-toolbar class="min-h-40px flex-center q-gutter-x-sm">
        <slot />
        <q-btn push text-color="primary" label="保存" icon="check" @click="详情.保存" v-if="详情.a.变化了">
            <q-badge color="orange" floating v-if="详情.a.变化了">变</q-badge>
        </q-btn>
        <q-btn push label="关闭" icon="close" @click="详情.关窗" />
        <slot name="尾部" />
    </q-toolbar>
</template>

<script setup>
const props = defineProps({
    // 可选属性: { type: Array, default: [] }
    详情: Object,
    设置: Object,
    list: Object,
    背景色: {
        type: String,
        default: ""
    },
})
</script>

<style lang="scss" scoped></style>